HAL PWR pullUp pullDown configuration functions migration

This section provides information about the HAL PWR pullUp pullDown configuration functions migration .

HAL PWR enable/disable pullup pulldown config

HAL1

HAL2

Function name

  • HAL_PWREx_EnablePullUpPullDownConfig(void)

  • HAL_PWR_EnableGPIOPull(void)

Function name

  • HAL_PWREx_DisablePullUpPullDownConfig(void)

  • HAL_PWR_DisableGPIOPull(void)


HAL PWR enable/disable gpio pullup

HAL1

HAL2

Function name

  • HAL_PWREx_EnableGPIOPullUp(PWR_GPIO_X , PWR_GPIO_BIT_XX )

  • HAL_PWR_LP_SetConfigGPIOPull(HAL_PWR_GPIO_PORT_X , HAL_PWR_GPIO_PULLUP)

Function name

  • HAL_PWREx_DisableGPIOPullUp(PWR_GPIO_X , PWR_GPIO_BIT_XX)

  • HAL_PWR_LP_SetConfigGPIOPull(HAL_PWR_GPIO_PORT_X , HAL_PWR_GPIO_NOPULL)


HAL PWR enable/disable gpio pulldown

HAL1

HAL2

Function name

  • HAL_PWREx_EnableGPIOPullDown(PWR_GPIO_X , PWR_GPIO_BIT_XX )

  • HAL_PWR_LP_SetConfigGPIOPull(HAL_PWR_GPIO_PORT_X , HAL_PWR_GPIO_PULLDOWN)

Function name

  • HAL_PWREx_DisableGPIOPullDown(PWR_GPIO_X , PWR_GPIO_BIT_XX )

  • HAL_PWR_LP_SetConfigGPIOPull(HAL_PWR_GPIO_PORT_X , HAL_PWR_GPIO_NOPULL)